<html>
    <head>

    <link href="http://localhost/assets/css/style_all.css" rel="stylesheet" type="text/css" />  
    <script type="text/javascript">    
                    function sendValue(nwid,nw_name)
                    {
                    parent.document.getElementById("nwid").value=nwid;
                    parent.document.getElementById("nw_name").innerHTML=nw_name;
                    }
                    
            </script>
    </head>
    <body bgcolor="#000000">

        <div class="boxed category-user">
                <div class="boxTop border-radius-top">
                    <div class="boxName"><img src="<?php echo EVENT_STATIC_SERVER;?>/images/icons/icon_event_title.gif" alt="picture"/><span><h4>Cộng đồng</h4></span></div>
                    <div class="tab float-right">
                        <div class="<?php echo $this->ntid==1?"tabItemS":"tabItem";?>"><span><a href="/event/network/1"> Địa điểm </a></span></div>   
                        <div class="<?php echo $this->ntid==2?"tabItemS":"tabItem";?>"><span><a href="/event/network/2"> Trường đại học, cao đẳng</a></span></div>     
                        <div class="<?php echo $this->ntid==4?"tabItemS":"tabItem";?>"><span><a href="/event/network/4">Trường phổ thông</a></span></div>
                       
                    </div>
                </div>
                <?if($this->ntid==2 || $this->ntid==4){?>
                <form method="post">
                    <select name="city">
                        <option value="">Tỉnh/Thành phố</option>
                        <?for($i=0;$i<count($this->cities);$i++){?>
                            <option  <?if($this->search['city']==$this->cities[$i]->cid) echo "selected='selected'";?> value="<?=$this->cities[$i]->cid?>"><?=$this->cities[$i]->name?></option>
                        <?}?>
                    </select>
                    Tên <input style="background-image: url(/images/searchInput.jpg);background-repeat:no-repeat;padding-left:20px;" class="cd-search" type="text" name="name" value="<?=$this->search['name']?>">
                    <input value="Tìm" type="submit">
                </form>
                <?}?>
                <div class="boxBody border-radius-bottom"> 
                    <div>
                        <div id="select_nw" method="post" action="">
                            <div class="category-menuWrap">
                                <ul class="category-menu">
                                    <li>
                                        <?for($i=0;$i<count($this->network);$i++){?>
                                        <a href="#" onclick="sendValue(<?=$this->network[$i]->nwid?>,' : <?=$this->network[$i]->name?>');parent.jQuery.fancybox.close();"><?=$this->network[$i]->name?></a>
                                        <?}?>

                                    </li>
                                </ul>
                            </div>
                        </div>       
                    </div>
                </div>
            </div>
    </body>
</html>